<template>
  <div class="tag-main-page">
    <Desktop v-if="isDesktop"></Desktop>
    <Mobile v-else></Mobile>
  </div>
</template>

<script setup>
import { storeToRefs } from 'pinia'
import { useAppStore } from '@/store/app'
import asyncCompWithLoading from '@/utils/async-comp-with-loading'

const Desktop = asyncCompWithLoading(() => import('./Desktop.vue'))
const Mobile = asyncCompWithLoading(() => import('./Mobile.vue'))

const appStore = useAppStore()
const { isDesktop } = storeToRefs(appStore)
</script>

<style lang="scss" scoped>
.tag-main-page {
  width: 100%;
  height: 100%;
}
</style>
